home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2004 #9 / Amiga Plus CD - 2004 - No. 09.iso / amigaplus / tools / dev_libs / feelin040718 / sources / _template / project.c < prev   
Encoding:
C/C++ Source or Header  |  2004-08-03  |  1.7 KB  |  80 lines

  1. ;/*
  2.    F_Create.rexx LIB Feelin:LIBS/Feelin/<classname>.fc version revision
  3.    QUIT
  4.    ________________________________________________________________________
  5. */
  6.  
  7. #include "Private.h"
  8.  
  9. struct FeelinBase                  *FeelinBase;
  10.  
  11. ///METHODS
  12. F_METHOD(void,<function>);
  13. //+
  14.  
  15. ///QUERY
  16. F_QUERY()
  17. {
  18.    FeelinBase = Feelin;
  19.  
  20.    switch (Which)
  21.    {
  22.       case FV_Query_ClassTags:
  23.       {
  24.          static struct FeelinDynamicEntry Methods[] =
  25.          {
  26.             "<name>",0
  27.             NULL
  28.          };
  29.  
  30.          static struct FeelinDynamicEntry Attributes[] =
  31.          {
  32.             "<name>",0
  33.             NULL
  34.          };
  35.  
  36.          static struct FeelinMethodEntry Handlers[] =
  37.          {
  38.             (FMethod) <function>, "<name>", 0,
  39.  
  40.             NULL
  41.          };
  42.  
  43.          static struct TagItem Tags[] =
  44.          {
  45.             FA_Class_LODSize,          (ULONG) sizeof (struct LocalObjectData),
  46.             FA_Class_Attributes,       (ULONG) Attributes,
  47.             FA_Class_Methods,          (ULONG) Methods,
  48.             FA_Class_MethodsTable,     (ULONG) Handlers,
  49.  
  50.             TAG_DONE
  51.          };
  52.  
  53.          return Tags;
  54.       }
  55.  
  56.       case FV_Query_PrefsTags:
  57.       {
  58.          static struct FeelinMethodEntry Table[] =
  59.          {
  60.             (FMethod) p_<name>_New,   NULL, FM_New,
  61.             (FMethod) p_<name>_Load,  "FM_PreferenceGroup_Load", 0,
  62.             (FMethod) p_<name>_Save,  "FM_PreferenceGroup_Save", 0,
  63.  
  64.              NULL
  65.          };
  66.  
  67.          static struct TagItem Tags[] =
  68.          {
  69.             FA_Class_Super,            (ULONG) FC_PreferenceGroup,
  70.             FA_Class_LODSize,          (ULONG) sizeof (struct p_LocalObjectData),
  71.             FA_Class_MethodsTable,     (ULONG) Table,
  72.          };
  73.  
  74.          return Tags;
  75.       }
  76.    }
  77.    return NULL;
  78. }
  79. //+
  80.